package cn.edu.hznu.notebook.service;

import java.util.List;

import cn.edu.hznu.notebook.entity.Notebook;
import cn.edu.hznu.notebook.entity.User;

public interface NotebookService {
	
	public void addNewNotebook(Notebook notebook) throws Exception;
	
	public Notebook getNotebookById(Integer id);
	
	public List<Notebook> getNotebooksByUser(User user);
	
	public void updateNotebookInfo(Notebook notebook) throws Exception;
	
	public void deleteNotebook(Notebook notebook) throws Exception;
	
	public void deleteNotebook(Integer id) throws Exception;
}
